'use strict';

/**
 * The main MVC app module.
 *
 * @type {angular.Module}
 */

var headerModule = angular.module('headerModule', ['LocalStorageModule', 'ui.bootstrap', 'filters']);
	
	headerModule.factory('CacheService', ['localStorageService', function(localStorageService) {
		return new CacheService(localStorageService);
	}]);

	headerModule.factory('Recherche', ['$http', '$q', 'localStorageService', 'CacheService', function($http, $q, localStorageService, CacheService) {
		return new RechercheModel($http, $q, localStorageService, CacheService);
	}]);
    
	headerModule.factory('StringManager', ['$http', '$rootScope', function($http, $rootScope) {
		return new StringManagerModel($http, $rootScope);
	}]);

    headerModule.controller('RechercheRapideController', ['$scope', 'Recherche', 'StringManager', RechercheRapideController]);
